// ignore_for_file: avoid_dynamic_calls

import 'dart:io';
import 'package:yoyo_get_fast_mirror/i18n/lang.i18n.dart';
import 'package:yoyo_get_fast_mirror/i18n/lang_zh-CN.i18n.dart';

final local = Platform.environment['LANG']!.indexOf('zh_CN') == 0;
final lang = local ? zhCN : enUS;

class Error {
  static String network =
      lang['GetfastmirroCommand']['Error']['NetWork'] as String;
  static String generateConfig =
      lang['GetfastmirroCommand']['Error']['GenerateConfig'] as String;
}

class GetfastmirroCommand {
  static String description =
      lang['GetfastmirroCommand']['Description'] as String;
  static String flagOnlyTestHlep =
      lang['GetfastmirroCommand']['FlagOnlyTestHlep'] as String;
  static String runOutPut = lang['GetfastmirroCommand']['RunOutPut'] as String;
  static String writting = lang['GetfastmirroCommand']['Writting'] as String;
  static String done = lang['GetfastmirroCommand']['Done'] as String;
  static String speedTest = lang['GetfastmirroCommand']['SpeedTest'] as String;
  static String speedResult =
      lang['GetfastmirroCommand']['SpeedResult'] as String;
  static Error error = Error();
}

class Lang {
  static String description = lang['Description'] as String;
  static String flagVersionHlep =lang['FlagVersionHlep'] as String;
  static String flagVerboseHlep =lang['FlagVerboseHlep'] as String;
  static String argumentinformation =lang['Argumentinformation'] as String;
  static String topLevelOptions =lang['TopLevelOptions'] as String;
  static String command =lang['Command'] as String;
  static String commandOptions =lang['CommandOptions'] as String;
  static GetfastmirroCommand getfastmirroCommand = GetfastmirroCommand();
}
